package edu.study.common.retry;

import java.math.BigDecimal;
import java.util.Date;

public interface RetryPolicy {
    
    Date nextRetryDate(Date now, int alreadyTryTimes);
    
    Date nextRetryDate(Date now, int alreadyTryTimes, long baseInterval);

    Date nextRetryDate(Date now, int alreadyTryTimes, long baseInterval, BigDecimal basePow);
}
